package com.easydisk.common.redis;

import lombok.Getter;

/**
 * @author 35536
 */

@Getter
public enum RedisKeyPrefix {

    /**
     * redis的前置key
     */
    REQ_LIMIT("req_limit:", "用户请求限制"),

    /**
     * 邮箱验证码前缀
     */
    EM_CODE("email_code:", "邮箱验证码"),

    EMAIL_FORGET("email_forget:", " 忘记密码的用户邮箱"),
    FILE_CHUNK_TASK_LOCK("file_chunk_task_lock:", "分片上传任务锁前缀"),
    FILE_CHUNK_TASK("file_chunk_task:", "分片上传任务前缀");


    private final  String key;
    private final String desc;

    RedisKeyPrefix(String key, String desc) {
        this.key = key;
        this.desc = desc;
    }

}
